import request from '@/utils/request'

// 查询班级科目信息列表
export function listClassSubjects(query) {
  return request({
    url: '/edu/classSubjects/list',
    method: 'get',
    params: query
  })
}

// 查询班级科目信息详细
export function getClassSubjects(classSubId) {
  return request({
    url: '/edu/classSubjects/' + classSubId,
    method: 'get'
  })
}

// 新增班级科目信息
export function addClassSubjects(data) {
  return request({
    url: '/edu/classSubjects',
    method: 'post',
    data: data
  })
}

// 修改班级科目信息
export function updateClassSubjects(data) {
  return request({
    url: '/edu/classSubjects',
    method: 'put',
    data: data
  })
}

// 删除班级科目信息
export function delClassSubjects(classSubId) {
  return request({
    url: '/edu/classSubjects/' + classSubId,
    method: 'delete'
  })
}

// 导出班级科目信息
export function exportClassSubjects(query) {
  return request({
    url: '/edu/classSubjects/export',
    method: 'get',
    params: query
  })
}